const User = require('../../model/User')
module.exports = async (req, res) => {
    // 检查权限
    if (!res.isrole()) {
        return
    }
    const AllUser = await User.findAll()
    res.sendResult(AllUser.length, 200, '获取成功！')
}